home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 4
/
ETO Development Tools 4.iso
/
Tools - Objects
/
Virtual User 1.0
/
Example Scripts
/
MessagePassing Example
/
Read Me First
< prev
Wrap
Text File
|
1991-01-25
|
2KB
|
27 lines
This folder contains an example of 2 VU scripts which pass messages to each other
sharing tasks defined in a common library. This is a multi-target multi-script
example, that is, script Actor1.vu runs in parallel with the script Actor2.vu.
They together demonstrate message passing while sharing tasks in a library. To
run this demo you need two target machines (both having the Desk Accessory, Key Caps).
It would be better if the two targets had different memory configurations and are
running different versions of system software.
This demo opens up the Key Caps desk accessory on the target machines and types
strings in it for you to read. Firstly it types out an introductory statement. After
that each target displays the message it's controlling actor receives from the actor
controlling the other target. If you read the message on the screen you will notice
that the messages describe the other target's characteristics like its User Name,
amount of RAM (memory) and version of system software they are running.
Your command line should be as follows: (assuming the two targets have user names
as Target1 and Target2 and that Actor1.vu, Actor2.vu and the library
MessagePassingDemoLib.vu are all in your current working directory)
VU -t1 '*:Target1' -s1 Actor1.vu -l1 Actor1.log ∂
-t2 '*:Target2' -s2 Actor2.vu -l2 Actor2.log
Caution: Do not forget to turn the key repeat off in the control panel on both
the targets. The script takes a few seconds (maybe 15) before you start
seeing anything on the target screens.